﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;

namespace Entities
{
    public class RiskManagementContext : ObjectContext
    {
        private ObjectSet<Project> _projects;
        private ObjectSet<Person> _persons;
        private ObjectSet<Risk> _riskFactors;

        public RiskManagementContext()
            : base("name=RMDatabaseEntities", "RMDatabaseEntities")
        {
            _projects = CreateObjectSet<Project>();
            _persons = CreateObjectSet<Person>();
            _riskFactors = CreateObjectSet<Risk>();
        }

        public ObjectSet<Project> Projects
        {
            get
            {
                return _projects;
            }
        }

        public ObjectSet<Person> Persons
        {
            get
            {
                return _persons;
            }
        }

        public ObjectSet<Risk> RiskFactors
        {
            get
            {
                return _riskFactors;
            }
        }
    }
}
